package cn.feizhu.aimarket.service;

import cn.feizhu.aimarket.model.domain.App;
import cn.feizhu.aimarket.model.dto.app.AppAddRequest;
import cn.feizhu.aimarket.model.vo.BookVO;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author wsdsb
* @description 针对表【app(应用表)】的数据库操作Service
* @createDate 2025-10-12 13:03:42
*/
public interface AppService extends IService<App> {

    /**
     * 创建应用
     *
     * @param appAddRequest 应用创建请求
     * @param userId 创建用户ID
     * @return 创建的应用ID
     */
    Long createApp(AppAddRequest appAddRequest, Long userId);

    List<App> listApps();

    List<BookVO> loadBooksVO(Long appId, long userId);
}
